package com.daidai.apps;

import com.daidai.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App1 {
    //setter注入
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContent.xml");
        BookService bookService = (BookService) context.getBean("bookService");

        bookService.startSrevice();


    }
}
